﻿<Window x:Class="VisaCRM.Modules.Admin.Views.ConsultantView"
             xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml"
             xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006" 
             xmlns:d="http://schemas.microsoft.com/expression/blend/2008" 
             mc:Ignorable="d" 
             Height="564.899" Width="543.417" Title="Manage Consultants" ResizeMode="NoResize">
    <Grid HorizontalAlignment="Stretch" VerticalAlignment="Stretch" Margin="0,0,0,0">
        <Grid.RowDefinitions>
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35" />
            <RowDefinition Height="35"/>
        </Grid.RowDefinitions>
        <Grid.ColumnDefinitions>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
            <ColumnDefinition Width="Auto"/>
        </Grid.ColumnDefinitions>
        <DataGrid Name="grdConsultant" Grid.Column="0" Grid.RowSpan="18" SelectedItem="{Binding Path=.CurrentConsultant, Mode=TwoWay}" ItemsSource="{Binding Path=AllConsultant}" AutoGenerateColumns="False" Margin="0,0,2,0" >
            <DataGrid.Columns>
                <!--<DataGridTextColumn Header="ConId" Width="Auto" Binding="{Binding Path=ConsultantID}" />-->
                <DataGridTextColumn Header="ConName" Width="Auto" Binding="{Binding Path=ConsultantName}" />
                <!--<DataGridTextColumn Header="JobTitle" Width="Auto" Binding="{Binding Path=ConsultantJobTitle}" />
                <DataGridTextColumn Header="ConDepartment" Width="Auto" Binding="{Binding Path=ConsultantDepartment}" />-->
            </DataGrid.Columns>
        </DataGrid>
        <Label Content="Name" Grid.Column="1" Grid.Row="0" HorizontalAlignment="Left" Margin="19,4,0,5" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="0" Height="24" TextWrapping="Wrap" Text="{Binding CurrentConsultantName, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" VerticalAlignment="Top" Width="120" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,0"/>
        <Label Content="Job Title" Grid.Column="1" Grid.Row="1" HorizontalAlignment="Left" Margin="19,5,0,4" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="1" Height="24" TextWrapping="Wrap" Text="{Binding CurrentConsultantJobTitle, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" VerticalAlignment="Top" Width="120" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,0"/>
        <Label Content="DDI" Grid.Column="1" Grid.Row="2" HorizontalAlignment="Left" Margin="19,4,0,5" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="2" TextWrapping="Wrap" Text="{Binding CurrentConsultantDDI, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" Width="120" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,7"/>
        <Label Content="Team DDI" Grid.Column="1" Grid.Row="3" HorizontalAlignment="Left" Margin="19,5,0,4" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="3" Height="24" TextWrapping="Wrap" Text="{Binding CurrentConsultantTeamDDI, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" VerticalAlignment="Top" Width="120" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,0"/>
        <Label Content="Email" Grid.Column="1" Grid.Row="4" HorizontalAlignment="Left" Margin="19,4,0,5" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="4" Height="24" TextWrapping="Wrap" Text="{Binding CurrentConsultantEmail, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" VerticalAlignment="Top" Width="120" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,0"/>
        <Label Content="Department" Grid.Column="1" Grid.Row="5" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,9,0,0" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbDepartment" AutomationProperties.AutomationId="DepartmentComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentConsultantDepartment,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="DepartmentName" ItemsSource="{Binding AvailableDepartment}"  Margin="5,8,0,5" Grid.Row="5" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Supervisor" Grid.Column="1" Grid.Row="6" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,9,0,0" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbSupervisor" AutomationProperties.AutomationId="SupervisorComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentConsultantSupervisor,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="ConsultantName" ItemsSource="{Binding AvailableSupervisor}"  Margin="5,8,0,5" Grid.Row="6" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Accreditation Detail" Grid.Column="1" Grid.Row="7" HorizontalAlignment="Left" Margin="19,4,0,5" VerticalAlignment="Center"/>
        <TextBox HorizontalAlignment="Left" Grid.Column="2" Grid.Row="7" Grid.RowSpan="2" Height="66" TextWrapping="Wrap" Text="{Binding CurrentConsultantAccreditationDetail, Mode=TwoWay, UpdateSourceTrigger=PropertyChanged }" VerticalAlignment="Top" Width="190" RenderTransformOrigin="2.502,0.873"  Margin="5,4,0,0" Grid.ColumnSpan="2"/>
        <Label Content="Status" Grid.Column="1" Grid.Row="9" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,9,0,0" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbStatus" AutomationProperties.AutomationId="StatusComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentConsultantStatus,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" ItemsSource="{Binding AvailableStatus}"  Margin="5,8,0,5" Grid.Row="9" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Branch" Grid.Column="1" Grid.Row="10" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,9,0,0" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbBranch" AutomationProperties.AutomationId="BranchComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentConsultantBranch,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="BranchName" ItemsSource="{Binding AvailableBranch}"  Margin="5,8,0,5" Grid.Row="10" VerticalAlignment="Center" Width="120" Grid.Column="2"/>
        <Label Content="Access Level" Grid.Column="1" Grid.Row="11" HorizontalAlignment="Left" VerticalAlignment="Center"  Margin="19,9,0,0" />
        <ComboBox HorizontalAlignment="Left" x:Name="cmbAccessLevel" AutomationProperties.AutomationId="AccessLevelComboBox" IsSynchronizedWithCurrentItem="True" SelectedItem="{Binding CurrentConsultantAccessLevel,Mode=TwoWay,UpdateSourceTrigger=PropertyChanged}" DisplayMemberPath="SecurityName" ItemsSource="{Binding AvailableAccessLevel}"  Margin="5,8,0,5" Grid.Row="11" VerticalAlignment="Center" Width="120" Grid.Column="2"/>

        <Button HorizontalAlignment="Left" Content="Add New" Margin="13,11,0,1" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=AddNewCommand}" RenderTransformOrigin="0.456,0.247" Grid.Column="1" Grid.Row="12"/>
        <Button HorizontalAlignment="Left" Content="Edit" Margin="13,11,0,1" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=EditCommand}" Grid.Column="1" Grid.Row="13"/>
        <Button HorizontalAlignment="Left" Content="Save" Margin="13,11,0,1" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=SaveCommand}" Grid.Column="2" Grid.Row="12"/>
        <Button HorizontalAlignment="Left" Content="Cancel" Margin="13,8,0,5" VerticalAlignment="Center" Width="121" Height="22" Command="{Binding Path=CancelCommand}" Grid.Column="2" Grid.Row="13"/>
        <Button HorizontalAlignment="Left" Content="Delete" Margin="13,11,0,1" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=DeleteCommand}" Grid.Column="3" Grid.Row="12"/>
        <Button HorizontalAlignment="Left" Content="Close" Margin="13,11,0,1" VerticalAlignment="Center" Width="121" Height="23" Command="{Binding Path=CloseCommand}" Grid.Column="3" Grid.Row="13"/>


    </Grid>
</Window>
